<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/17
 * Time: 17:27
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class PrintRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/print','namespace'=>'Api'], function ($router) {
            $router->get('test', [ 'uses' => 'PrintController@getTest']);
            $router->post('test', [ 'uses' => 'PrintController@postTest']);
        });
    }
}